Make python-iptables compatible with python 3.12#351
Conversation
This looks great, thank you! Can you rebase on top of current master? I fixed the build recently, so we should be able to merge this after that. |
|
@ldx rebased. Let me know if you need anything else! Thanks! |
|
@ldx any chance we can get a release / version bump pushed up to pypi? Last was v1.0.1 from 2023. With recent changes like this it would be useful to be able to pull from pypi instead of having to pin to a git hash or branch as I'm doing currently |
Absolutely! There are two other fixes waiting to be merged though, so let me take care of those first. |
Addresses
ModuleNotFounderror described in #308 due to https://peps.python.org/pep-0632/sysconfigwas added in python 3.2 but setup in this repo still specifies support for python 2 (and not specific python3 version) so we still first attempt to importdistutilsand if that fails usesysconfig.